/*
 * Copyright (C) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the 'License');
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an 'AS IS' BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef IMAGE_KNIFE_PRO_IMAGEKNIFE_TEST_H
#define IMAGE_KNIFE_PRO_IMAGEKNIFE_TEST_H

#include "napi/native_api.h"
#include "imageknife.h"

namespace ImageKnifeTest {

// MemoryCache
class MemoryCacheTest {
public:
    static void SetupTests(napi_env env, napi_value &exports)
    {
        napi_property_descriptor desc[] = {
            {"memoryCacheLimitTest", nullptr, MemoryCacheLimitTest, nullptr, nullptr, nullptr, napi_default, nullptr},
        };
        napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
    }
private:
    static napi_value MemoryCacheLimitTest(napi_env env, napi_callback_info info);
};

void RegisterCustomTransformation();

// DecoderInterceptor
napi_value DecoderInterceptorSetupTests(napi_env env, napi_value &exports);

// DownloadInterceptor
napi_value DownloadInterceptorSetupTests(napi_env env, napi_value &exports);

// ImageKnifeOption.CustomData, ImageInfo.CustomData
napi_value CustomDataSetupTests(napi_env env, napi_value &exports);

// Custom Log Printer
napi_value CustomLogPrinterSetupTests(napi_env env, napi_value &exports);

// Custom Key Generator
napi_value CustomKeyGeneratorTests(napi_env env, napi_value &exports);

// Custom FileType Parser
napi_value CustomFileTypeParserSetupTests(napi_env env, napi_value &exports);

// internal interface
napi_value ImageKnifeInterfaces(napi_env napi_env, napi_value &exports);

// ImageNode C API Test
napi_value NativeNodeTest(napi_env env, napi_value &exports);

} // end of ImageKnifeTest

#endif // IMAGE_KNIFE_PRO_IMAGEKNIFE_TEST_H